updating oE floor
floor
<built-in> function floor(object value)
Rounds value down to the next integer less than or equal to value.
Parameters:
- value : any Euphoria object; each atom in value will be acted upon.
Comments:
It does not simply truncate the fractional part, but actually rounds towards negative infinity.
Returns:
An object, the same shape as value but with each item guarenteed to be an integer less than or equal to the corresponding item in value.
Example 1:
y = floor({0.5, -1.6, 9.99, 100}) -- y is {0, -2, 9, 100}
See Also:
Not Categorized, Please Help
|